<extend name="Public/base" />

<block name="body">
    <div class="main-title" style="padding-bottom: 10px;">
        <h2>录入盘点信息</h2>
    </div>
    <div class="row" ng-controller="StorageInCtrl">
        <form action="{:U('checkflow')}" method='post' class="form-horizontal">
            <div class="col-md-12">
                <div class="panel panel-default">
                    <div class="panel-heading" style="padding-bottom: 5px;padding-top: 5px;">
                        <span class="check-tips"><button type="button" ng-click="moreItem()" class='btn btn-primary' >添加商品信息</button></span></div>
                    <div class="panel-body" style="padding-bottom: 0px;padding-top: 0px;">
                        <div class="form-item cf">
                            <div class="controls">
                                <div style="border: #000 1px solid;margin-top: 5px;margin-bottom: 5px;" class='data-table table-striped '>
                                    <table  id="tbodyspec">
                                        <thead>
                                        <tr>
                                            <th scope="col" width="20%">商品</th>
                                            <th scope="col">实际盘点数量</th>
                                            <th scope="col">操作</th>
                                        </tr>
                                        </thead>
                                        <tbody id="tbodyspec_a">
                                            <tr ng-repeat="item in items">
                                                <td class="change">
                                                    <select data-form="select2" style="height: 30px; width:307px;" name="inventoryid[]">
                                                        <option value="">请选择...</option>
                                                        <volist name="_prolist" id="pl">
                                                            <option value="{$pl.id},{$pl.pid},{$pl.pname},{$pl.spec},{$pl.cnt},{$pl.spu}">{$pl.pname}[{$pl.spec}]</option>
                                                        </volist>
                                                    </select>
                                                </td>
                                                
                                                <td><input type="tel" name="aftercnt[]" /></td>
                                                <td><button type="button" class="btn btn-info" ng-click="removeItem($index)"> - </button></td>
                                            </tr>
                                        <!--读取商品信息-->
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="col-md-12">
                <button type="submit" class="btn confirm btn-danger">保 存</button>
                <a  class="btn btn-primary" id="fh" onclick="javascript:history.back(-1); return false;">返 回</a>
            </div>
        </form>
    </div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Warehouse/checkflow')}');
        //select2-drop select2-with-searchbox select2-drop-active select2-drop-above
        //$(“[class='good list Card']“)
    </script>
</block>
